package com.zige.zige.utils;


import java.util.ArrayList;
import java.util.List;

public class DeleteRepeated {
    public static String delet(String str) {


        List<String> data = new ArrayList<>();

        for (int i = 0; i < str.length(); i++) {
            String s = str.substring(i, i + 1);
            if (!data.contains(s)) {
                data.add(s);
            }
        }

        String result = "";
        for (String s : data) {
            result += s;
        }
        System.out.println(result);

        return result;
    }

}